import { createStore } from 'vuex'

import Aside from './Aside' // 引入右侧菜单模块
import Tag from './Tag' // 引入 tag 标签模块
import user from './user' // 引入用户模块

export default createStore({
    state: {
        windowWidth: document.documentElement.clientWidth, // 窗口宽度
    },
    actions: {

    },
    mutations: {
        WINDOWWIDTH(state, value){
            state.windowWidth = value
        }
    },
    getters: {

    },
    modules:{
        Aside,
        Tag,
        user
    }
})